/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui1;

/**
 *
 * @author Administrator
 */

public class Clothes extends Goods {
	private String color;
	private String size;
	public Clothes(String name,double price,int num,String color, String size) {
		super(name,price,num);
		this.color = color;
		this.size = size;
	}

	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	@Override
	public String toString() {
		return "衣服:"+super.getName()+",价格:"+super.getPrice()+",颜色:"+color+",尺寸"+size+",数量:"+super.getNum();
	}
	
}
